import request from "@/utils/request";

export function getIndex() {
  return request({
    url: '/cms/templates/index',
    method: 'get'
  })
}

export function getToView(data) {
  return request({
    url: '/cms/templates/toView',
    method: 'post',
    data: data
  })
}

export function getToEdit(data) {
  return request({
    url: '/cms/templates/toEdit',
    method: 'post',
    data: data
  })
}

export function getToSave(data) {
  return request({
    url: '/cms/templates/save',
    method: 'post',
    data: data
  })
}
